Skip to content

visor: register RuntimeLogs on the RPC server#2417

Merged
0pcom merged 1 commit intoskycoin:developfrom
0pcom:fix/visor-rpc-runtime-logs
May 2, 2026
Merged

visor: register RuntimeLogs on the RPC server#2417
0pcom merged 1 commit intoskycoin:developfrom
0pcom:fix/visor-rpc-runtime-logs

Conversation

@0pcom
Copy link
Copy Markdown
Collaborator

@0pcom 0pcom commented May 2, 2026

The hypervisor UI's "view logs" action and 'cli visor logs' both hit Visor.RuntimeLogs() through the RPC client, but the RPC server type (*RPC) had no RuntimeLogs method registered. Stock net/rpc exposes only methods on the registered receiver via reflection, so client calls came back with

Rpc: can't find method app-visor.RuntimeLogs.

API.RuntimeLogs, Visor.RuntimeLogs, and the rpcClient.RuntimeLogs client wrapper were already in place — the dispatcher in pkg/visor/rpc_visor.go was the missing piece. Add it next to GetRuntimeConfig (same shape: zero-arg in, *string out).

Did you run make format && make check?

Fixes #

Changes:

How to test this PR:

The hypervisor UI's "view logs" action and 'cli visor logs' both
hit Visor.RuntimeLogs() through the RPC client, but the RPC server
type (*RPC) had no RuntimeLogs method registered. Stock net/rpc
exposes only methods on the registered receiver via reflection, so
client calls came back with

  Rpc: can't find method app-visor.RuntimeLogs.

API.RuntimeLogs, Visor.RuntimeLogs, and the rpcClient.RuntimeLogs
client wrapper were already in place — the dispatcher in
pkg/visor/rpc_visor.go was the missing piece. Add it next to
GetRuntimeConfig (same shape: zero-arg in, *string out).
@0pcom 0pcom merged commit f3ec895 into skycoin:develop May 2, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant